<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>品牌管理</title>
    <link rel="stylesheet" href="__STATIC__/bootstrap/css/bootstrap.min.css" />
    <link rel="stylesheet" href="__STATIC__/hdjs/hdjs.css" />
</head>
<body>
<div class="wrap">
    <table class="hd-table hd-table-list" style="text-align:center">
        <thead>
        <tr>
            <td width="50">品牌id</td>
            <td width="100">品牌名称</td>
            <td width="100">品牌排序</td>
            <td width="50">LOGO</td>
            <td width="50">是否热门</td>
            <td width="150">操作</td>
        </tr>
        </thead>
        <tbody>
            <foreach from="$data" key="$k" value="$v">
                <tr>
                    <td width="50">{$v['bid']}</td>
                    <td>{$v['bname']}</td>
                    <td width="100">{$v['sort']}</td>
                    <td width="50"><img src="__ROOT__/{$v['logo']}" alt="" width="100" /></td>
                    <td width="50">
                        <if value="$v['is_hot']">
                            <span class="glyphicon glyphicon-ok"></span>
                        <else/>
                            <span class="glyphicon glyphicon-remove"></span>
                        </if>
                    </td>
                    <td width="150">
                        <a href="{|U:'Brand/edit',array('bid'=>$v['bid'])}" class="btn btn-primary btn-sm">编辑</a>
                        <a href="javascript:;" class="btn btn-danger btn-sm" onclick="if(confirm('确定要删除吗？')) location.href='{|U:'Brand/del',array('bid'=>$v['bid'])}'">删除</a>
                    </td>
                </tr>
            </foreach>
        </tbody>
    </table>
    <div class="page_hdjob">
      
    </div>
</div>

</body>
</html>


